package cn.itcast;

import java.sql.*;

public class DruidTest {
    public static void main(String[] args) throws Exception {
        //driver：org.apache.calcite.avatica.remote.Driver
        //url: jdbc:avatica:remote:url=http://node01:8888/druid/v2/sql/avatica/

            Class.forName("org.apache.calcite.avatica.remote.Driver");
            Connection conn = DriverManager.getConnection("jdbc:avatica:remote:url=http://node01:8888/druid/v2/sql/avatica/");
            Statement statement = conn.createStatement();


        //ResultSet resultSet = statement.executeQuery("");
        System.out.println(statement);


    }
}
